package com.fourth_groups.shopping121store.ui.login;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

import com.fourth_groups.shopping121store.R;


public class LoginActivity extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_login);
        initview();
    }

    private void initview() {
        findViewById(R.id.phone_regst).setOnClickListener(this);
        findViewById(R.id.phone_login).setOnClickListener(this);
        findViewById(R.id.wx_login).setOnClickListener(this);
        findViewById(R.id.qq_login).setOnClickListener(this);
        findViewById(R.id.wb_login).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.phone_regst:
                Intent intent=new Intent(LoginActivity.this,Phone_regst_Activity.class);
                startActivity(intent);
                break;
            case R.id.phone_login:
                Intent intent1=new Intent(LoginActivity.this,Phone_login_Activity.class);
                startActivity(intent1);
                break;
        }
    }

}
